package com.sqfw.project.wp.controller;

import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.sqfw.framework.aspectj.lang.annotation.Log;
import com.sqfw.framework.aspectj.lang.enums.BusinessType;
import com.sqfw.project.wp.domain.WpInfoCall;
import com.sqfw.project.wp.service.IWpInfoCallService;
import com.sqfw.framework.web.controller.BaseController;
import com.sqfw.framework.web.domain.AjaxResult;
import com.sqfw.common.utils.poi.ExcelUtil;
import com.sqfw.framework.web.page.TableDataInfo;

/**
 * 工单呼叫关联表Controller
 * 
 * @author lx
 * @date 2023-07-31
 */
@RestController
@RequestMapping("/wp/wpInfoCall")
public class WpInfoCallController extends BaseController
{
    @Autowired
    private IWpInfoCallService wpInfoCallService;

    /**
     * 新增工单呼叫关联表
     */
    @Log(title = "工单呼叫关联表", businessType = BusinessType.INSERT)
    @PostMapping("/addWpInfoCall")
    public AjaxResult addWpInfoCall(@RequestBody WpInfoCall wpInfoCall)
    {
        return toAjax(wpInfoCallService.insertWpInfoCall(wpInfoCall));
    }

}
